public class ArrayFind
{
    public static void main(String[] args)
    {
        char [][] _chars =
                {
                        new char[]{'*'},
                        new char[]{'*','*','*'},
                        new char[]{'*','*','*','*','*'},
                        new char[]{'*','*','*','*','#','*','*'},
                };
        for(var i: _chars)
        {
            for (var j : i)
                System.out.print(j);
            System.out.println();
        }

        for(int i = 0; i < _chars.length; i++)
            for(int j = 0; j < _chars[i].length;j++)
            {
                if(_chars[i][j] == '#')
                    System.out.println("在下标为[" + i + "][" + j + "]的数组中有'#'");
            }
    }
}
